package com.zxu.test.grav;

import android.view.View;

import androidx.databinding.ObservableField;
import androidx.lifecycle.MutableLiveData;

import com.zxu.test.base.BaseViewModel;
import com.zxu.test.studyapp.R;
import com.zxu.test.util.DoubleClickUtils;
import com.zxu.test.util.Event;

public class GravViewModel extends BaseViewModel {

    public final ObservableField<Event<String>> btnEvent = new ObservableField<>();
    public final ObservableField<Event<String>> tryEvent = new ObservableField<>();
    private final  MutableLiveData<Event<Object>> btBroadcastEvent = new MutableLiveData<>();

    MutableLiveData<Event<Object>> getBroadcastCommand() {
        return btBroadcastEvent;
    }

    public GravViewModel() {
        start();
    }

    private void start() {
    }

    /*public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bt:
                if (!DoubleClickUtils.isFastDoubleClick(R.id.bt))
                    btnEvent.set(new Event<>(""));
                break;
        }
    }*/

}
